package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntity
import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_exam_pass_employee")
@TableName("en_exam_pass_employee")
@ApiModel(value = "考试通过人员")
data class ExamPassEmployee(

        @ApiModelProperty("企业id")
        var enterpriseId: String? = null,

        @ApiModelProperty("用户id")
        var employeeUserId: String? = null,

        @ApiModelProperty("员工正式考试记录id")
        var officialExamRecordId: String? = null

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()

    companion object{
        private const val serialVersionUID = 1L
    }
}